<?php

/**
 * $Id$
 */
class Mtangiakhang extends TV_Model {

    protected $table_lien_he = "lien_he";
    protected $table_gioi_thieu = "gioi_thieu";

    function Mtangiakhang() {
        parent::TV_Model();
    }

    //all function for tin tuc
    public function addContact($data) {
        $this->db->insert($this->table_lien_he, $data);
    }

    public function getcontentintro( $status = AppContants::ACTIVE_STATUS) {
        $sql = "SELECT {$this->table_gioi_thieu}.*
                FROM	{$this->table_gioi_thieu}                
                WHERE status = ?";
        return $this->query_row($sql, array($status));
    }

}
